package com.fqxiny.lease.web.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fqxiny.lease.model.entity.ApartmentInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fqxiny.lease.web.admin.vo.apartment.ApartmentDetailVo;
import com.fqxiny.lease.web.admin.vo.apartment.ApartmentItemVo;
import com.fqxiny.lease.web.admin.vo.apartment.ApartmentQueryVo;
import com.fqxiny.lease.web.admin.vo.apartment.ApartmentSubmitVo;


/**
* @author 25312
* @description 针对表【apartment_info(公寓信息表)】的数据库操作Service
* @createDate 2025-03-25 19:55:24
*/
public interface ApartmentInfoService extends IService<ApartmentInfo> {

    ApartmentDetailVo getDetailById (Long id);

    void saveOrUpdateApartment(ApartmentSubmitVo entity);

    IPage<ApartmentItemVo> pageItem(IPage<ApartmentItemVo> page , ApartmentQueryVo ApartmentQueryVo);

    // todo ： 异常处理多种结果
    void removeApartmentById(Long id);
}
